const path = require('path');

module.exports = {
    mode: 'development',

    devtool: 'eval-source-map',

    entry: './src/index.js',

    output: {
        filename: 'bundle.js',
        path: path.resolve(__dirname, 'public'),
    },

    devServer: {
        static: './public',
        hot: true,
        open: true,
        port: 8888
    }
}